class Student:

    name = None
    age = None

    # __init__
    def __init__(self, name, age):
        self.__name = name
        self.__age = age

    # __str__转为字符串输出
    def __str__(self):
        return f"Student name: {self.__name}, age: {self}"

    # __lt__定义大于小于规则
    def __lt__(self, other):
        return self.age < other.age

    # __le__定义大于等于小于等于规则
    def __le__(self, other):
        return self.age < other.age

    # __eq__定义是否相等规则
    def __eq__(self, other):
        return self.age == other.age








